package io.renren.modules.contract.service;

import io.renren.modules.contract.entity.ContractReceiptEntity;
import io.renren.modules.contract.entity.ContractReceiptExportEntity;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 收款合同表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-07-31 16:08:55
 */
public interface ContractReceiptService {
	
	ContractReceiptEntity queryObject(String id);
	
	List<ContractReceiptEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(ContractReceiptEntity contractReceipt);
	
	void update(ContractReceiptEntity contractReceipt);
	
	void delete(String id);
	
	void deleteBatch(String[] ids);

	ContractReceiptEntity queryPaymenAmount(ContractReceiptEntity contractReceipt);

	List<ContractReceiptExportEntity> getContractReceiptAll(String id);

	Map<String,Object> getContractReceipt(Map<String,Object> params);

	Map<String,Object> getContractPayment(Map<String,Object> params);

	void deleteContractReceipt(Map<String,Object> map);

	void deleteContractPayment(Map<String,Object> map);

	void deletePaymentProportionInfo (Map<String,Object> map);

	List<ContractReceiptEntity> exportContractOrProportionInfo(Map<String, Object> params);

	void maintainPaymentRatio(ContractReceiptEntity contractReceipt);

	BigDecimal sumContractTotal(String tenderBatch);

}
